<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../font/iconfont.css">
    <link rel="stylesheet" href="../font1/iconfont.css">
    <link rel="stylesheet" href="../css/login.css">
    <link rel="stylesheet" href="../css/com.css">
    <script src="../js/jquery-3.6.0.js"></script>
    <script src="../js/interface.js"></script>
    <script src="../js/cookie.js"></script>
</head>

<body>
    <div class="s-header">
        <div class="header">
            <div class="header-l">
                <div class="header-logo">
                    <img src="../reg/r-12.png" alt="">
                </div>
                <div class="split"></div>
                <div class="header-slogan">
                    <img src="../reg/r-13.png" alt="">
                </div>
            </div>
            <div class="header-r">
                <ul class="nav">
                    <li class="nav-item"><a href="https://i.360.cn/findpwd/customerhelper?">帮助中心</a></li>
                    <li class="nav-item"><a href="https://i.360.cn/complaint?">账号申述</a></li>
                    <li class="nav-item"><a href="https://i.360.cn/security/accountguard">账号卫士</a></li>
                </ul>
            </div>
        </div>
    </div>
    <div class="s-main">

        <div class="main-bg">
            <div class="swipper"><img src="../reg/r-11.png" alt=""></div>
        </div>
        <div class="main-wrap">
            <div class="main-content">
                <div class="content-wrap">
                    <div class="zc-hd"><a href="javascript:;">360账号登录</a></div>

                    <div class="zc-middle">
                        <div class="phone-wrap ">

                            <div class="phone-img"><span class="iconfont icon-shouji"></span></div>

                            <input class="phone-input" type="text" placeholder="手机号">

                        </div>


                        <div class="pwd-wrap ">

                            <div class="pwd-img"><span class="iconfont icon-icon-mima"></span></div>

                            <input class="pwd-input" type="password" placeholder="密码">

                        </div>


                        <p class="p-content"><a href="https://i.360.cn/findpwd/">忘记密码？</a></p>
                        <div class="dlTips"></div>
                        <div class="zc">
                            <input type="submit" value="登录" class="zc-button">
                        </div>
                    </div>
                </div>
                <div class="zc-ft">
                    <div class="zf-l">
                        <span class="iconfont icon-QQ"></span>
                        <span class="iconfont icon-weixin"></span>
                        <span class="iconfont icon-weibo"></span>
                    </div>

                    <div class="zf-r"><a href="./reg.html">立即注册</a></div>
                </div>
            </div>


        </div>


    </div>
    <div class="s-footer">
        <div class="footer">
            <p class="p1">Copyright©2005-2021 360.CN All Rights Reserved 360安全中心</p>
            <p class="p2"><img src="../reg/r-14.png" alt=""><span>京ICP证080047号[京ICP备08010314号-6]
                    京公网安备11000002000006号</span></p>
        </div>
    </div>
</body>

<script>
    $(function () {
        $(".zc-button").click(function () {
            var account = $(".phone-input").val();
            // console.log(account);
            var pwd = $(".pwd-input").val();
            // console.log(pwd);

            login({ account, pwd }).then(({ status, detail }) => {
                if (status) {
                    setCookie("lgc", account, 7);
                    var obj = urlParse();
                    console.log(obj);
                    if (obj.returnUrl) {
                        location.href = obj.returnUrl;
                    } else {
                        location.href = "./index_1.html";
                    }
                } else {
                    $(".dlTips").text(detail);
                }
            }).catch(err => {
                console.log(err);
            }).finally(function () {

            })


        })
    })
</script>

</html>